import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsTransportation {
  msdsEntprId?: number;
  id?: number;
  packFlag: string;
  packMethod: string;
  packNotice: string;
  packType: string;
  un: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsTransportationHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsTransportation 信息*/
  public addMsdsTransportation(param: MsdsTransportation): Observable<number> {
    return this.http.post('/msdsTransportation', param, {needSuccessInfo: true});
  }

  /*修改msdsTransportation信息*/
  public editMsdsTransportation(param: MsdsTransportation): Observable<void> {
    return this.http.put('/msdsTransportation', param, {needSuccessInfo: true});
  }

  /*查询msdsTransportation详情*/
  public getMsdsTransportationDetail(msdsEntprId: number): Observable<MsdsTransportation> {
    return this.http.get('/msdsTransportation/' + msdsEntprId);
  }


}
